package org.chuan.base.mapper;

import org.chuan.base.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {

    void delete(Long id);

    void save(T t);

    void update(T t);

    List<T> queryAll();

    T queryById(Long id);

    Long count(BaseQuery query);

    List<T> queryPage(BaseQuery query);

    void batchRemove(List<Long> ids);

}
